# -- coding: utf-8 --
import sys
import getopt


def usage():
    print "useage:","-i inputFile","-o outputFile"


if __name__ == '__main__':
    opts, args = getopt.getopt(sys.argv[1:], "hi:o:")
    input_file = ""
    output_file = ""
    print opts
    for op, value in opts:
        if op == "-i":
            input_file = value
            print 'input',value
        elif op == "-o":
            output_file = value
            print 'out',value
        elif op == "-h":
            print 'h',value
            usage()
            sys.exit()
        else:
            usage()
            sys.exit()